package com.cls.business.service;

import com.cls.business.entity.AllotmentCapital;

import com.cls.common.entity.QueryRequest;
import com.github.pagehelper.PageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 拨付资金表 Service接口
 *
 * @author slx
 * @date 2020-11-20 09:33:12
 */
public interface IAllotmentCapitalService extends IService<AllotmentCapital> {
    /**
     * 查询（分页）
     *
     * @param request QueryRequest
     * @param allotmentCapital allotmentCapital
     * @return PageInfo<AllotmentCapital>
     */
    PageInfo<AllotmentCapital> findAllotmentCapitals(QueryRequest request, AllotmentCapital allotmentCapital);

    PageInfo<AllotmentCapital> findAllotmentCapitalsPage(QueryRequest request, AllotmentCapital allotmentCapital);

    /**
     * 查询（所有）
     *
     * @param allotmentCapital allotmentCapital
     * @return List<AllotmentCapital>
     */
    List<AllotmentCapital> findAllotmentCapitals(AllotmentCapital allotmentCapital);
    /**
     * 查询（根据课题id查询所有金额列表lists）
     *
     * @param request QueryRequest
     * @param declareId declareId
     * @return PageInfo<AllotmentCapital>
     */
    PageInfo<AllotmentCapital> findAllotmentCapitalsByDeclareId(QueryRequest request,Long declareId);
    /**
     * 新增
     *
     * @param allotmentCapital allotmentCapital
     */
    void createAllotmentCapital(AllotmentCapital allotmentCapital);

    /**
     * 修改
     *
     * @param allotmentCapital allotmentCapital
     */
    void updateAllotmentCapital(AllotmentCapital allotmentCapital);

    /**
     * 删除
     *
     * @param ids ids
     */
    void deleteAllotmentCapitals(String[] ids);

    AllotmentCapital selectDetailById(Long allotmentCapitalId);

    AllotmentCapital findNewsLog(Long declareId);
}
